﻿using System;
using Geotools.Geometries;
using AzukiMap.Tools;

namespace AzukiMap.Map
{
    public class MapExtentChangedArgs : EventArgs
    {
        GTPolygon _extent = null;

        public MapExtentChangedArgs(GTPolygon extent)
        {
            _extent = extent;
        }

        public double[] Extent
        {
            get
            {
                GeometryUtil geomUtil = new GeometryUtil();
                double[] extentArr = geomUtil.GetExtentPointsArr(_extent);
                return extentArr;
            }
        }

    }
}
